SdJwtFactory

class SdJwtFactory(hashAlgorithm: HashAlgorithm = HashAlgorithm.SHA_256, saltProvider: SaltProvider = SaltProvider.Default, decoyGen: DecoyGen = DecoyGen.Default, fallbackMinimumDigests: MinimumDigests? = null)(source)

Factory for creating an UnsignedSdJwt

Parameters

hashAlgorithm

the algorithm to calculate the DisclosureDigest

saltProvider

provides Salt for the calculation of Disclosure

fallbackMinimumDigests

This is an optional hint, that expresses the number of digests on the immediate level of every DisclosableObject. It will be taken into account if there is not an explicit hint for this DisclosableObject. If not provided, decoys will be added only if there is a hint at DisclosableObject level.

Constructors

Link copied to clipboard
constructor(hashAlgorithm: HashAlgorithm = HashAlgorithm.SHA_256, saltProvider: SaltProvider = SaltProvider.Default, decoyGen: DecoyGen = DecoyGen.Default, fallbackMinimumDigests: MinimumDigests? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun createSdJwt(sdJwtSpec: DisclosableObject): Result<SdJwt<JsonObject>>

Calculates a UnsignedSdJwt for a given SD-JWT element.